package com.um.jdy.platform.base.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class WxPagePageDTO extends PageDTO {

    @ApiModelProperty(value = "微信页面名称")
    protected String title;

    @ApiModelProperty(value = "类型：Mall-商城 Charge-充电")
    protected String type;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = toPageParams(
                new String[]{"title","type"},
                new String[]{"title","type"});
        pageParams.getCondition().put("orderby","sort_no ASC");
        return  pageParams;
    }
}
